<template>
  <el-dialog :title="!dataForm.id ? '新建' :  isDetail ? '详情':'编辑'" :close-on-click-modal="false" :visible.sync="visible" class="cu-dialog cu-dialog_center" lock-scroll width="800px">
    <el-row :gutter="15" class="" >
      <el-form ref="elForm" :model="dataForm" size="mini" label-width="100px" label-position="right" :disabled="!!isDetail" :rules="rules">
        <el-col :span="8" >
          <el-form-item label="退款状态" prop="type">
            <el-select v-model="dataForm.type" :placeholder="isDetail ? '' : '请输入详细地址'" clearable required filterable :style="{ width: '100%' }">
              <el-option v-for="(item, index) in typeOptions" :key="index" :label="item.fullName" :value="item.enCode"></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="8" >
          <el-form-item label="退款金额" prop="type">
            <el-select v-model="dataForm.type" :placeholder="isDetail ? '' : '请输入详细地址'" clearable required filterable :style="{ width: '100%' }">
              <el-option v-for="(item, index) in typeOptions" :key="index" :label="item.fullName" :value="item.enCode"></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="8" >
          <el-form-item label="退款时间" prop="type">
            <el-select v-model="dataForm.type" :placeholder="isDetail ? '' : '请输入详细地址'" clearable required filterable :style="{ width: '100%' }">
              <el-option v-for="(item, index) in typeOptions" :key="index" :label="item.fullName" :value="item.enCode"></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="24" >
          <el-form-item label="备注" prop="description">
            <el-input v-model="dataForm.description" placeholder="请输入" show-word-limit :style="{ width: '100%' }" type="textarea" :autosize="{ minRows: 4, maxRows: 4 }"></el-input>
          </el-form-item>
        </el-col>
      </el-form>
    </el-row>
    <span slot="footer" class="dialog-footer">
			<el-button @click="visible = false">取 消</el-button>
			<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail">确 定</el-button>
		</span>
  </el-dialog>
</template>


<script>
export { default } from './index.js'
</script>
